using System;
using System.ComponentModel.DataAnnotations;

namespace HDLogCenter.Infrastructure.Models
{
    public class ProjectConfig
    {
        public int Id { get; set; }
        
        [Required]
        [MaxLength(100)]
        public string Name { get; set; } = string.Empty;
        
        [Required]
        [MaxLength(20)]
        public string LogLevel { get; set; } = "Information";
        
        [MaxLength(500)]
        public string LogPath { get; set; }
        
        [MaxLength(500)]
        public string Description { get; set; }
        
        public bool IsActive { get; set; } = true;
        
        public DateTime CreatedAt { get; set; } = DateTime.Now;
        
        public DateTime? UpdatedAt { get; set; }
        
        [MaxLength(100)]
        public string CreatedBy { get; set; }
        
        [MaxLength(100)]
        public string UpdatedBy { get; set; }
    }
}
